package com.office.anywher.offcial.entity;

import org.json.JSONException;

import com.office.anywher.beans.Params;
import com.office.anywher.https.HttpClientService;

public class DataPackageForm extends IData{
	public DataPackageForm(){}
	public DataPackageForm(String json) throws JSONException {
		super(json);
	}

	@Override
	public IData[] getDataFromJson(HttpClientService context,Params param,String url)  throws Exception {
		return new IData[]{context.getWaitingDocumentInfo(url, param.mAssignmentId)};
	}
	@Override
	public String getDataFormJson(HttpClientService context,Params param,String url)  throws Exception{
		return context.getWaitingDocumentInfoJson(url, param.mAssignmentId);
	}
}